<?php
/**
 *  
 * ds
 * 2020.08.13
 */
namespace App\Models\MainDB;

use Illuminate\Database\Eloquent\Model;

class RechargeLimit extends Model{

    protected $table = 'ln_recharge_limit';     //数据库内完整表名

    protected $primaryKey = 'id';    //主键名

    protected $appends = ['add_date'];

    protected $fillable = [
        "id",
        "level",
        "rank_id",
        "register_time",
        "is_force",
        "recharge_max_day",
        "recharge_max_single",
        "add_time",
    ];

    public $timestamps = false;

    public function getAddDateAttribute()
    {
        return !empty($this->attributes['add_time']) ? date("Y-m-d H:i:s", $this->attributes['add_time']) : "";
    }

}